SEND NET MESSAGE INTEGER
This command will send a message containing an integer value to the specified player.
SEND NET MESSAGE INTEGER Player Number, Integer Value
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
Integer Value
Integer
The integer to send
This command does not return a value.
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you.
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message integer 0,mousex()
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=1 then ReturnInteger=net message integer()
get net message
endwhile
endwhile
MULTIPLAYER Commands Menu
Index